import { Button } from "antd"
import {useNavigate } from 'react-router-dom'

const Index = () => {
    const navigate = useNavigate()
    const handleClick = () => {
        navigate('/user/useDetail?id=1')
    }

    return (
        <div style={{margin:'20px'}}>
            <Button onClick={handleClick}>跳转到详情</Button>
        </div>
    )
}

export default Index